package com.ns.basic.dict.entry;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ns.core.entry.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * 字典
 *
 * @author: liaowei
 * @since: 2024/8/31 12:56
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@Accessors(chain = true)
@TableName(value = "KERNEL_DICT_ENTRY")
public class DictEntry extends BaseModel {
    /**
     * 此模块对应的表名
     */
    public static final String TABLE_NAME = "KERNEL_DICT_ENTRY";
    /**
     * 唯一标识
     */
    @TableId(type = IdType.AUTO)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**
     * 字典名
     */
    private String name;
    /**
     * 字典code
     */
    private String code;
}
